using Microsoft.Phone.Data.Linq.Mapping;
using System;
using System.Data.Linq;
using System.Data.Linq.Mapping;
namespace MicroMsg.Storage
{
	[Index(Columns = "nPackID", IsUnique = false, Name = "nPackID"), Table]
	public class EmojiArt : StorageItem
	{
		[Column(IsPrimaryKey = true)]
		public string strMD5;
		[Column]
		public int nPackID;
		[Column]
		public string strName_zh_cn;
		[Column]
		public string strName_zh_tw;
		[Column]
		public string strName_en_us;
		[Column]
		public string strEmojiArt;
		[Column(IsVersion = true)]
		private Binary _version;
		[Column(CanBeNull = true)]
		public int? _nOrder;
		public int nOrder
		{
			get
			{
				if (this._nOrder.get_HasValue())
				{
					return this._nOrder.get_Value();
				}
				return 0;
			}
			set
			{
				if (!this._nOrder.get_HasValue())
				{
					this._nOrder = default(int?);
				}
				this._nOrder = new int?(value);
			}
		}
		public EmojiArt()
		{
		}
		public EmojiArt(EmojiArtConstItem item, int pack_id)
		{
			this.strMD5 = item.strMD5;
			this.nPackID = pack_id;
			this.strName_en_us = item.strName_en_us;
			this.strName_zh_cn = item.strName_zh_cn;
			this.strName_zh_tw = item.strName_zh_tw;
		}
	}
}
